package com.nimitz.module.demo.domain;

import com.nimitz.common.annotation.Excel;
import com.nimitz.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用戶表 dem_user
 */
@ApiModel(value = "DemUser对象", description = "用戶表")
public class DemUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用戶id
     */
    @ApiModelProperty(value = "用戶id")
    private Integer userId;

    /**
     * 用戶编码
     */
    @Excel(name = "用戶编码")
    @ApiModelProperty(value = "用戶编码")
    private String userCode;

    /**
     * 用戶名称
     */
    @Excel(name = "用戶名称")
    @ApiModelProperty(value = "用戶名称")
    private String userName;

    /**
     * 用戶日期
     */
    @Excel(name = "用戶日期")
    @ApiModelProperty(value = "用戶日期")
    private String userDate;

    /**
     * 用户状态：0=正常,1=停用
     */
    @Excel(name = "用户状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "用户状态")
    private String userStatus;

    /**
     * 删除标志：0=存在,1=删除
     */
    private String delFlag;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserDate() {
        return userDate;
    }

    public void setUserDate(String userDate) {
        this.userDate = userDate;
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("userCode", getUserCode())
                .append("userName", getUserName())
                .append("userDate", getUserDate())
                .append("userStatus", getUserStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
